﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using WatiNSahi;


using WatiN.Core;
using WatiN.Core.Native;
using WatiN.Core.Logging;
using WatiN.Core.UtilityClasses;
using WatiN.Core.Properties;
using WatiN.Core.Native.Windows;
using WatiN.Core.DialogHandlers;

using WatiNSahi.Extensions;
using System.Threading;

namespace WatiNSahiTester
{
    class WatiNSahiExtensionTests : WatiNSahiTest
    {
        public void _test_extension()
        {
            ExtensionsSettings.DefaultBrowser = BrowserType.FireFox;
            SetUp();
            GoTo("http://enolin2plp:7045/enovia");            
            SetText("login_name", "Test Everything");            
            Click<Button>(Find.ByText("Login"));            
            CurrentBrowser.WaitForComplete();            
            Click<Label>(Find.ByText("Sign Out"));
            Thread.Sleep(2000);
            TearDown();            
        }
    }
}
